package com.battery.system.service.battery;

import com.battery.system.domain.BO.PurchaseBO;
import com.battery.system.domain.Purchase;
import com.battery.system.domain.VO.PurchaseVO;
import com.battery.system.domain.VO.PurchaseVV;
import com.battery.system.service.IBaseService;

import java.util.List;

/**
 * 采购订单Service接口
 *
 * @author battery
 * @date 2021-01-22
 */
public interface IPurchaseService extends IBaseService<Purchase> {
    /**
     * 查询采购订单
     *
     * @param id 采购订单ID
     * @return 采购订单
     */
    public Purchase selectPurchaseById(String id);

    /**
     * 查询采购订单列表
     *
     * @param purchase 采购订单
     * @return 采购订单集合
     */
    public List<Purchase> selectPurchaseList(Purchase purchase);

    /**
     * 新增采购订单
     *
     * @param purchase 采购订单
     * @return 结果
     */
    public int insertPurchase(Purchase purchase);

    /**
     * 修改采购订单
     *
     * @param purchase 采购订单
     * @return 结果
     */
    public int updatePurchase(Purchase purchase);

    /**
     * 批量删除采购订单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deletePurchaseByIds(String ids);

    /**
     * 删除采购订单信息
     *
     * @param id 采购订单ID
     * @return 结果
     */
    public int deletePurchaseById(String id);

    List<PurchaseVV> selectPurchaseVVList(String id, Long status, String order);

    /**
     * 展示采购订单列表
     *
     * @param purchaseBO
     * @return
     */
    List<PurchaseVO> selectPurchaseVOList(PurchaseBO purchaseBO);

    /**
     * 采购订单发货
     *
     * @param purchase
     * @return
     */
    int delivery(Purchase purchase);
}
